3.119 \(\int \frac{(1-x^2)^2}{(-1+x^2)^2} \, dx\)

Optimal. Leaf size=1 \[ x \]

[Out]

x

________________________________________________________________________________________

Rubi [A]  time = 0.0004407, antiderivative size = 1, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {21, 8} \[ x \]

Antiderivative was successfully verified.

[In]

Int[(1 - x^2)^2/(-1 + x^2)^2,x]

[Out]

x

Rule 21

Int[(u_.)*((a_) + (b_.)*(v_))^(m_.)*((c_) + (d_.)*(v_))^(n_.), x_Symbol] :> Dist[(b/d)^m, Int[u*(c + d*v)^(m +
 n), x], x] /; FreeQ[{a, b, c, d, n}, x] && EqQ[b*c - a*d, 0] && IntegerQ[m] && ( !IntegerQ[n] || SimplerQ[c +
 d*x, a + b*x])

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rubi steps

\begin{align*} \int \frac{\left (1-x^2\right )^2}{\left (-1+x^2\right )^2} \, dx &=\int 1 \, dx\\ &=x\\ \end{align*}

Mathematica [A]  time = 0.0002571, size = 1, normalized size = 1. \[ x \]

Antiderivative was successfully verified.

[In]

Integrate[(1 - x^2)^2/(-1 + x^2)^2,x]

[Out]

x

________________________________________________________________________________________

Maple [A]  time = 0.002, size = 2, normalized size = 2. \begin{align*} x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-x^2+1)^2/(x^2-1)^2,x)

[Out]

x

________________________________________________________________________________________

Maxima [A]  time = 0.993379, size = 1, normalized size = 1. \begin{align*} x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2+1)^2/(x^2-1)^2,x, algorithm="maxima")

[Out]

x

________________________________________________________________________________________

Fricas [A]  time = 1.09399, size = 4, normalized size = 4. \begin{align*} x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2+1)^2/(x^2-1)^2,x, algorithm="fricas")

[Out]

x

________________________________________________________________________________________

Sympy [A]  time = 0.054186, size = 0, normalized size = 0. \begin{align*} x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x**2+1)**2/(x**2-1)**2,x)

[Out]

x

________________________________________________________________________________________

Giac [A]  time = 1.17185, size = 1, normalized size = 1. \begin{align*} x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x^2+1)^2/(x^2-1)^2,x, algorithm="giac")

[Out]

x